import $http from "../http";

// 员工登录
export const Login = (params) => $http.post("/login", params);

// 获取手机验证码
export const getCode = (mobile) => $http.get("/getCode", { mobile });

//重置密码 验证码检测
export const updateMvCode = (smCode) => $http.get("/checkSmCode", { smCode });

// 重置密码 新密码设置
export const updatePwd = (newPassword) => $http.post("/resetPassword", { newPassword });

// 检测用户是否登录
export const queryLoginStatus = () => $http.get("/queryLoginStatus");

// 获取路由表
export const getRouteList = () => $http.get("/getRouteList");

// 文件上传tonken获取
export const getUploadToken = (params) => $http.get("/getUploadToken", params)

// 删除文件内容
export const deleteFile = (params) => $http.get("/deleteFile", params);

//- 检测员工用户名或者是手机号码是否已经存在
export const checkIsExist = (params) => $http.post('/checkIsExists', params);